<!DOCTYPE html>
<html lang='en'>
<head>
    <meta charset='UTF-8'>
    <title>小区[{{ $estate->id }}]修改</title>
    <style>
     table {
         font-family: verdana,arial,sans-serif;
         font-size:11px;
         color:#333333;
         border-width: 1px;
         border-color: #666666;
         border-collapse: collapse;
         width: 100%;
     }
     table th {
         border-width: 1px;
         padding: 8px;
         border-style: solid;
         border-color: #666666;
         background-color: #dedede;
         text-align: center;
     }
     table td {
         border-width: 1px;
         padding: 8px;
         border-style: solid;
         border-color: #666666;
         background-color: #ffffff;
         text-align: center;
     }
    </style>
</head>
<body>
<table>
<tbody>

    <form action='' method='POST'>
    <tr>
        <td>名称</td>
        <td>
            <input type='text' name='name' value='{{ $estate->name }}'>
        </td>
    </tr>
    <tr>
        <td>自动维护地址单元值</td>
        <td>
            <input id='is_auto_manage_value_yes' type='radio' name='is_auto_manage_value' value='1' {{ $estate->is_auto_manage_value_yes()? 'checked': '' }}> <label for="is_auto_manage_value_yes">是</label>
            <input id='is_auto_manage_value_no' type='radio' name='is_auto_manage_value' value='0' {{ $estate->is_auto_manage_value_no()? 'checked': '' }}> <label for="is_auto_manage_value_no">否</label>
        </td>
    </tr>
    <tr>
        <td>输出格式地址槽</td>
        <td>
            <select name='output_address_slot_id'>
                <option value=''></option>
@foreach ($estate->address_slots as $id => $address_slot)
                <option value='{{ $id }}' {{ $id == $estate->output_address_slot_id?'selected':'' }}>{{ $address_slot->rule }}</option>
@endforeach
            </select>
        </td>
    </tr>
    <tr>
        <td>
            <a href='javascript:window.history.back(-1);'>取消</a>
        </td>
        <td>
            <input type='submit' value='保存'>
        </td>
    </tr>
    </form>

</tbody>
</table>
</body>
<script>
</script>
</html>
